home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Drawing
/
SourceMode.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
1KB
|
56 lines
// SourceMode.h
#ifndef SourceMode_h
#define SourceMode_h
#ifndef Integers_h
#include "Integers.h"
#endif
class SourceMode
{
public:
enum Mode
{
srcCopy = ::srcCopy,
srcOr = ::srcOr,
srcXor = ::srcXor,
srcBic = ::srcBic,
notSrcCopy = ::notSrcCopy,
notSrcOr = ::notSrcOr,
notSrcXor = ::notSrcXor,
notSrcBic = ::notSrcBic,
ditherCopy = ::ditherCopy | ::srcCopy,
ditherOr = ::ditherCopy | ::srcOr,
ditherXor = ::ditherCopy | ::srcXor,
ditherBic = ::ditherCopy | ::srcBic,
notDitherCopy = ::ditherCopy | ::notSrcCopy,
notDitherOr = ::ditherCopy | ::notSrcOr,
notDitherXor = ::ditherCopy | ::notSrcXor,
notDitherBic = ::ditherCopy | ::notSrcBic,
blend = ::blend,
addPin = ::addPin,
addOver = ::addOver,
subPin = ::subPin,
transparent = ::transparent,
addMax = ::addMax,
subOver = ::subOver,
addMin = ::adMin /* sic */
};
private:
Mode mode;
public:
SourceMode( Mode m ) : mode( m ) {}
static SourceMode Make( int16 value )
{ return static_cast<Mode>( value ); }
int16 Value() const { return mode; }
};
#endif